package com.mypan.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mypan.dao.tbFile;
import com.mypan.vo.FileVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FileMapper extends BaseMapper<tbFile> {
    @Insert("insert into tb_file values(#{id},#{name},#{compress})")
    public int addFile(tbFile tbFile);

    @Select("select * from tb_file where id=#{fId}")
    public tbFile getFileById(String fId);

    @Select("select * from tb_file where id=#{fId}")
    public FileVo getFileVoById(String fId);
}
